home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: The Month 2004 October / The Sunday Times - The Month 2004-10.iso / pc / assets / bespoke / kids / code / code_alphabet.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2004-09-06  |  782 b   |  35 lines

  1. function updateRight(frameToDisplay)
  2. {
  3. }
  4. _global.MorseCode = new Object();
  5. MorseCode._tl = this;
  6. newDepth = 99;
  7. this.onUnload = function()
  8. {
  9.    delete MorseCode;
  10.    this.unloadMovie();
  11. };
  12. btnClip_0.onRollOver = function()
  13. {
  14.    preview_mc.gotoAndStop(2);
  15. };
  16. i = 1;
  17. while(i < 17)
  18. {
  19.    duplicateMovieClip("btnClip_0","btnClip_" + i,16384 + newDepth++);
  20.    clipToEffect = eval("btnClip_" + i);
  21.    clipToEffect.frameNum = i + 2;
  22.    clipToEffect.image_mc.gotoAndStop(i + 1);
  23.    clipToEffect._x = i % 5 * 72 + 10;
  24.    clipToEffect._y = Math.floor(i * 0.2) * 72 + 50;
  25.    clipToEffect.onRollOver = function()
  26.    {
  27.       preview_mc.gotoAndStop(this.frameNum);
  28.    };
  29.    clipToEffect.onRollOut = function()
  30.    {
  31.       preview_mc.gotoAndStop(1);
  32.    };
  33.    i++;
  34. }
  35.